﻿using DDDDemoABP1.Payments;
using MongoDB.Driver;
using Volo.Abp.Data;
using Volo.Abp.MongoDB;

namespace DDDDemoABP1.MongoDB;

[ConnectionStringName(DDDDemoABP1DbProperties.ConnectionStringName)]
public class DDDDemoABP1MongoDbContext : AbpMongoDbContext, IDDDDemoABP1MongoDbContext
{
    /* Add mongo collections here. Example:
     * public IMongoCollection<Question> Questions => Collection<Question>();
     */

    public IMongoCollection<Account> Accounts => Collection<Account>();

    protected override void CreateModel(IMongoModelBuilder modelBuilder)
    {
        base.CreateModel(modelBuilder);

        modelBuilder.ConfigureDDDDemoABP1();
    }
}
